<!DOCTYPE html>
<html>
<head>
	<title>评论管理</title>
	<meta charset="UTF-8">
	<meta name="renderer" content="webkit" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<!-- layui -->
	<link rel="stylesheet" type="text/css" href="../lib/layui/css/layui.css">
	<!-- umeditor -->
	<link rel="stylesheet" type="text/css" href="../lib/umeditor/themes/default/css/umeditor.min.css">
	<!-- Custom -->
	<link rel="stylesheet" type="text/css" href="../lib/css/reset.css" />
	<link rel="stylesheet" type="text/css" href="../lib/css/easy_umeditor.css" />
	<link rel="stylesheet" type="text/css" href="../css/comment.css" />
</head>
<body>
<!-- wrap -->
<div class="wrap">
	<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
		<ul class="layui-tab-title">
			<li class="layui-this">评论管理</li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show">
				<button class="layui-btn addReviewBtn">新增</button>
				<table class="layui-table">
					<colgroup>
						<col width="200">
						<col width="200">
						<col width="200">
						<col width="150">
					</colgroup>
					<thead>
					<tr>
						<th>名称</th>
						<th>楼层</th>
						<th>留言时间</th>
						<th>操作</th>
					</tr>
					</thead>
					<tbody class="showReviewList"></tbody>
				</table>
				<div id="page"></div>
			</div>
		</div>
	</div>
</div>
<div class="layui-form clearAfter editReviewTpl">
	<div class="left fl">
		<div class="layui-form-item">
			<div class="layui-input-block mn">
				<script type="text/plain" id="editReviewContent" class="editReviewContent" style="width:600px; height:300px;"></script>
				<div class="upImg editUmUpImg fl">
					<input type="file" class="upImgFile editUmUpImgFile" />
					<button class="layui-btn upImgBtn"><i class="layui-icon"></i> 插入图片</button>
				</div>
			</div>
		</div>
	</div>
	<div class="right fl">

		<div class="layui-form-item">
			<label class="layui-form-label">名称</label>
			<div class="layui-input-inline mn">
				<input type="text" placeholder="请输入名称" class="layui-input editReviewName">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">楼层</label>
			<div class="layui-input-inline mn">
				<input type="text" placeholder="请输入楼层" class="layui-input editReviewFloor">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">留言时间</label>
			<div class="layui-input-inline mn">
				<input type="text" placeholder="请输入留言时间" class="layui-input editReviewTime">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">头像</label>
			<div class="layui-input-inline mn">
				<div class="upReviewImg">
					<img src="" alt="" class="editReviewImg" />
				</div>
				<div class="upImg fl">
					<input type="file" class="upImgFile editUpImgFile" />
					<button class="layui-btn upImgBtn"><i class="layui-icon"></i> 插入图片</button>
				</div>
				<div class="layui-form-mid layui-word-aux">尺寸：60*60像素</div>
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-input-block mn">
			<button class="layui-btn savaEditReview">保存</button>
		</div>
	</div>
</div>
<script type="text/javascript" src="../lib/js/jquery-1.12.2.min.js"></script>
<script type="text/javascript" src="../lib/js/json2.js"></script>
<script type="text/javascript" src="../lib/js/system-config.js"></script>
<script type="text/javascript" src="../lib/layui/layui.js"></script>
<!-- 引入layer,element,laydate模块 -->
<script type="text/javascript">
	layui.use(['layer','element','laydate'], function(){
		var layer = layui.layer,
			element = layui.element();
	});
</script>
<script type="text/javascript" src="../lib/js/jsrender-min.js"></script>
<!-- 定义行业资讯模板 -->
<script type="text/x-jsrender" id="reviewTpl">
	<tr uid="{{:id}}">
		<td>
			<span class="showReviewName">{{:name}}</span>
		</td>
		<td>
			<span class="showReviewFloor">{{:floor}}</span>
		</td>
		<td>
			<span class="showReviewTime">{{:headImg}}</span>
		</td>
		<td>
			<button class="layui-btn layui-btn-small editReviewBtn"><i class="layui-icon"></i></button>
			<button class="layui-btn layui-btn-small delReviewBtn"><i class="layui-icon"></i></button>
		</td>
	</tr>
</script>
<script type="text/javascript" charset="gbk" src="../lib/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="gbk" src="../lib/umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="../lib/umeditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="../lib/js/easy.ajax.js"></script>
<script type="text/javascript" src="../js/comment.js"></script>
</body>
</html>